/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bio.jsf.util;

import com.bio.jpa.entities.FeatureKey;
import com.bio.jpa.entities.GenBank;
import java.util.HashMap;
import java.util.Iterator;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import org.primefaces.model.chart.BubbleChartModel;
import org.primefaces.model.chart.BubbleChartSeries;
import org.primefaces.model.chart.PieChartModel;

/**
 *
 * @author Diego
 */
@ManagedBean(name = "genBankGraphics")
@SessionScoped
public class GenBankGraphics {

   
    private PieChartModel gc_proportion;
    private BubbleChartModel bubbleModel;

    public GenBankGraphics() {
     
        createGCProportion();
        createBubbleModel();
    }

    private void createGCProportion() {
        gc_proportion = new PieChartModel();
        gc_proportion.set("Base GC", 60.92);
        gc_proportion.set("Base AT", 29.18);

    }

    private void createBubbleModel() {
        bubbleModel = new BubbleChartModel();

        bubbleModel.addBubble(new BubbleChartSeries("Gene32", 70, 183, 55));
        bubbleModel.addBubble(new BubbleChartSeries("Gene132", 45, 92, 36));
        bubbleModel.addBubble(new BubbleChartSeries("Gene12", 24, 104, 40));
        bubbleModel.addBubble(new BubbleChartSeries("Gene32", 50, 123, 60));
        bubbleModel.addBubble(new BubbleChartSeries("Gene12", 15, 89, 25));
        bubbleModel.addBubble(new BubbleChartSeries("Gene34", 40, 180, 80));
        bubbleModel.addBubble(new BubbleChartSeries("Gene54", 70, 70, 48));
    }

   
}
